home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / stckdnws.hqx / Stacked News ƒ / Stacked News / stack_-1.xml < prev    next >
Extensible Markup Language  |  1992-10-12  |  4KB  |  23 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>4</cardCount>
  7.     <cardID>4571</cardID>
  8.     <listID>4680</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>438</height>
  15.     </cardSize>
  16.     <script>on connectglobal postingEnabled, useCTBput false into postingEnabledput the hilite of btn "Use CTB" of card "setup" into useCTBput cd fld "server" of card "setup" into remoteNameif remoteName is empty thenask "Please enter the address of the news server:"if it is empty then exit connectput it into remoteNameput it into cd fld "server" of card "setup"end if-- selection and configuration of the connection happens hereif useCTB thenCTBNewConnection "MacTCP Tool",10240,10240CTBConfigure "RemoteTCPPort 119"CTBConfigure "RemoteAddress" && quote & remoteName & quoteCTBOpenelseglobal NNTPconnectionget TCPNameToAddr(remoteName)if it is empty or first word of it is "┬º┬º┬º" thenput itanswer "Could not translate the host name ┬┤" & remoteName & "┬┤."exit connectend ifput TCPActiveOpen(it, 119, 0) into NNTPconnectionend ifrepeatget fetchLine(900)if it is not empty thenput itput (first word of it is "200") into postingEnabledexit repeatelseanswer "No response from news server within timeout period." with "Cancel" or "Retry"if it is "Cancel" thenif useCTB then CTBDispose else TCPRelease NNTPconnectionexit repeatend ifend ifend repeatend connecton openStackinstallAboutconnectif cd fld "groups" of cd "browser" is empty then go to cd "setup"end openStackon closeStackglobal useCTBsend "closing" to cd fld "groups" of card "browser"sendLine "QUIT"put fetchLine(100)if useCTB then CTBDisposeelseglobal NNTPconnectionTCPRelease NNTPconnectionend ifdoMenu "Compact Stack"send "reset menuBar" to HyperCard  -- remove our About itemend closeStackfunction fetchLine timeOutglobal useCTBif useCTB thenif timeOut is empty thenrepeatget CTBRecvUpTo(linefeed, 60)if it is empty then set cursor to watchelse return itend repeatelse return CTBRecvUpTo(linefeed, timeOut)elseglobal NNTPconnectionif timeOut is empty thenrepeatget TCPRecvUpTo(NNTPconnection, linefeed, 60, empty)if it is empty then set cursor to watchelse exit repeatend repeatelse get TCPRecvUpTo(NNTPconnection, linefeed, timeOut, empty)delete last char of itreturn itend ifend fetchLineon sendLine theTextglobal useCTBif useCTB then CTBSendWithLF theText & returnelseglobal NNTPconnectionTCPSend NNTPconnection, theText & return & linefeedend ifend sendLineon helpgo to cd "help"end help--- About handling ---on suspendStacksend "reset menuBar" to HyperCardend suspendStackon resumeStackinstallAboutend resumeStackon installAboutput "About Stacked NewsΓǪ" into first menuItem of menu "Apple" with menuMessages "about"end installAbouton aboutanswer "Stacked News v1.4" & return & "by Georg Gollmann" & return & ┬¼"gollmann@edvz.tuwien.ac.at"end about-- end of script</script>
  17.     <background id="2648" file="background_2648.xml" name="" />
  18.     <card id="4571" file="card_4571.xml" marked="false" name="browser" owner="2648" />
  19.     <card id="4116" file="card_4116.xml" marked="false" name="setup" owner="2648" />
  20.     <card id="3606" file="card_3606.xml" marked="false" name="help" owner="2648" />
  21.     <card id="2155" file="card_2155.xml" marked="true" name="posting" owner="2648" />
  22. </stack>
  23.